const express = require('express');
const router = express.Router();

var lunbo = {
    status:0,
    message:[
        {url:'http://baidu.com',img:'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1544176783966&di=30820eff05636edf17c710a9ad324044&imgtype=0&src=http%3A%2F%2Fimgsrc.baidu.com%2Fimgad%2Fpic%2Fitem%2F7e3e6709c93d70cf0b0e1ad9f2dcd100bba12b69.jpg'},
        {url:'http://www.baidu.com',img:'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1544176839765&di=7a96eba3afd0843a319757bf4946e9db&imgtype=0&src=http%3A%2F%2Fpic2.16pic.com%2F00%2F05%2F01%2F16pic_501154_b.jpg'}
    ]
}
router.get('/getlunbo',(req,res,next)=>{
    res.header('Access-Control-Allow-Origin','*');
    res.json(lunbo);
})

module.exports=router;